$(document).ready(function() {
		//验证部分
		$("#teacherChangePassword").validate({
            rules: {
                oldPassword : {
                    required : true,
                    maxlength : 50
                },
                 passwd : {
                    required : true,
					rangelength:[6,20]
                },
				confirmPasswd : {
                    required : true,
					equalTo:"#passwd"
                }
            },
            messages: {
                oldPassword : {
					required:"原密码必须填写"
                },
                passwd : {
                    required : "新密码必须填写",
					rangelength:"新密码长度在6-20位之间"
                },
				confirmPasswd : {
                    required : "确认密码必须填写",
					equalTo:"确认密码必须与新密码相同"
                }
            }
        });

  });

  